<script type="text/html" data-help-name="aggregation">
    <!-- Enter a summary of Node functionality here in 50 characters or less-->
    <p>to aggregate ia-cloud data values. </p>

    <h3>Property Items</h3>
    <dl class="message-properties">
        <dt>Object properties<span class="property-type">Tab</span></dt>
        <dl class="message-properties" style="margin-left: 8px">
            <dt>Aggregation cycle<span class="property-type">Number/selection</span></dt>
            <dd> Period for aggregation. (1 minute, 10 minutes, 30 minutes, 1 hour, 12 hours, 1 day, 1 week, 1 month)</dd>
            <dt>Object key<span class="property-type">string</span></dt>
            <dd>Unique key string assigned to the ia-cloud object that outputs the aggregated results</dd>
            <dt>Object description<span class="property-type">string</span></dt>
            <dd>A friendly description of the PLC data item</dd>
        </dl>
        <dt>Data Item properties<span class="property-type">Tab</span></dt>
        <dt>Aggregation list<span class="property-type">Aggregation settings</span></dt>
            <dl class="message-properties" style="margin-left: 8px">
                <dt>Object key<span class="property-type">string</span></dt>
                <dd>Object key of target object to aggregate. If left blank, aggregate data for all objects. </dd>
                <dt>Data name<span class="property-type">String</span></dt>
                <dd> Data name of the target data item to be aggregated. If left blank, aggregate data for all data items. </dd>
                <dt>Aggregation Method<span class="property-type">String/Selection</span></dt>
                <dd>Type of aggregation to be performed. (sum, count, average, variance, standard deviation, maximum value, minimum value, median value)</dd>
            </dl>
        <dt>name<span class="property-type">string</span></dt>
        <dd>Name to give to individual Node</dd>
    </dl>
    <h3>Input message</h3>
    <dl class="message-properties">
        <dt>request <span class="property-type">string</span></dt>
        <dd>ia-cloud request content. Valid only for "store"</dd>
        <dt>dataObject <span class="property-type">object</span></dt>
        <dd>An object of the ia-cloud dataObject structure. </dd>
        <dd>dataValue of contentData in dataObject must be a number or a string evaluated as a number</dd>
    </dl>

    <h3>Output message</h3>
    <dl class="message-properties">
        <dt>payload <span class="property-type">string | object</span></dt>
        <dd>contentData of the ia-cloud object. Error comment, if an error occurred. </dd>
        <dt>request <span class="property-type">string</span></dt>
        <dd>ia-cloud request content. Same as received as input message. </dd>
        <dt>dataObject <span class="property-type">object</span></dt>
        <dd>ia-cloud dataObject. Each data item of contentData becomes the aggregated value according to the settings, and </dd>
        <dd>Output for each set aggregation period. </dd>
    </dl>

    <h3>Details</h3>
    <p>Extracts the contentData of the set object key from the iaCloud object of the input message, aggregates each dataValue, and outputs it as an output message. </p>
    <p>Aggregate all data items in the same period. </p>
    <p>The maximum number of data in the aggregation period is 10,000 or less. </p>

</script>